package net.tv90.bfmccore.event;

import lombok.Getter;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class FlagCapturedEvent extends Event {
    private static final HandlerList Handlers = new HandlerList();
    private final @Getter Player player;
    private final @Getter String faction;
    private final @Getter String pointIndex;
    private final @Getter String pointName;
    public FlagCapturedEvent(Player player, String faction, String pointIndex, String pointName) {
        this.player = player;
        this.faction = faction;
        this.pointIndex = pointIndex;
        this.pointName = pointName;
    }
    public static HandlerList getHandlerList() {
        return Handlers;
    }
    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }

}
